package com.zhangxi.line.service;

import com.zhangxi.line.pojo.NewsUser;

/**
 * ClassName: NewsUserService
 * Package: com.zhangxi.line.service
 */
public interface NewsUserService {
    NewsUser findByUserName(String username);
    /**
     * 根据用户id查询用户信息
     * @param uid 要查询的用户id
     * @return 找到返回NewsUser对象,找不到返回null
     */
    NewsUser findByUid(Integer uid);


    /**
     * 注册用户信息,注册成功返回大于0的整数,失败返回0
     * @param newsUser
     * @return
     */
    int registUser(NewsUser newsUser);
}
